class GameStats:

    def __init__(self, ai_game):
        self.settings = ai_game.settings
        self.reset_stats()
        # 游戏是否运行中
        self.game_active = False
        # 最高得分
        self.high_score = 0

    def reset_stats(self):
        self.ship_life = self.settings.ship_life
        # 当前得分
        self.score = 0
        # 当前等级
        self.level = 1
